<template>
  <div class="not-found-container">
    <div class="not-found-content">
      <h1>404</h1>
      <p>抱歉，您访问的页面不存在！</p>
      <el-button type="primary" @click="goHome">返回首页</el-button>
    </div>
  </div>
</template>

<script setup>
import { useRouter } from 'vue-router'
const router = useRouter()
const goHome = () => {
  router.push('/')
}
</script>

<style scoped>
.not-found-container {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  background: linear-gradient(135deg, #f0f2f5 0%, #e0e7ef 100%);
}
.not-found-content {
  text-align: center;
  background: #fff;
  padding: 40px 60px;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}
.not-found-content h1 {
  font-size: 72px;
  color: #409eff;
  margin-bottom: 16px;
}
.not-found-content p {
  font-size: 20px;
  color: #666;
  margin-bottom: 32px;
}
</style>
